Repository navigation
gh-153309: Add HTTP QUERY method (RFC 10008) to http library - #155786
Merged
Merged
Conversation
Documentation build overview
427 files changed ·
|
This was referenced Aug 22, 2026
mbeijen
force-pushed
the
httplib-query-method-rfc-10008
branch
from
November 12, 2026 18:23
36b8be9 to
20c261e
Compare
orsenthil
reviewed
Nov 12, 2026
| # We always set the Content-Length header for these methods because some | ||
| # servers will otherwise respond with a 411 | ||
| _METHODS_EXPECTING_BODY = {'PATCH', 'POST', 'PUT'} | ||
| _METHODS_EXPECTING_BODY = {'PATCH', 'POST', 'PUT', 'QUERY'} |
Member
There was a problem hiding this comment.
Is this sufficient? Doesn't QUERY define any state expectations from HTTP?
Contributor
Author
There was a problem hiding this comment.
In http.client, indeed this is all there is needed. Thinking about it, we might want to add redirect handling in urllib.request for QUERY, but that would be a separate PR.
orsenthil
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC 10008: The HTTP QUERY Method is now a finalized RFC on the Standards track, and the method name has been added to the IANA registry
Add it to http library HTTPMethod enum, too
This is the second try of #153310